
import TipModel from "./TipModel";
import BaseController from "../base/controller/BaseController";


export default class TipController extends BaseController {


    private static ins:TipController;

    static instance(){
        if(!this.ins){
            this.ins = new TipController();
        }
        return this.ins;
    }



    private model: TipModel;

    constructor(){
        super();
        this.model = new TipModel();
    }


    intoLayer(content:string,func:(result:number)=>void,right?:string,left?:string){
        this.model.init(content,func,right,left)
        this.pushView('prefabs/battle/TipView',this.model)
    }
}
